package name.panitz.ludens.animationGame;
import javax.swing.*;
import java.awt.Dimension;
import name.panitz.ludens.util.ShowInFrame;

public class SizedPanel extends JPanel {

  /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
int preferredWidth=400;
  int preferredHeight=300;

  public SizedPanel(int w,int h){
    preferredWidth=w;
    preferredHeight=h;
  }

  public SizedPanel(){}

  @Override public Dimension getPreferredSize(){
    return new Dimension(preferredWidth,preferredHeight); 
  }

  public static void main(String [] args){
    ShowInFrame.show(new SizedPanel());
  }
}

